<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Grom Hellscream
 * Date: 11/16/12
 * Time: 2:10 PM
 * To change this template use File | Settings | File Templates.
 */
defined('_JEXEC') or die;


/**
 * @package		Joomla.Administrator
 * @subpackage	mod_vast_chucnangcanhan
 */
abstract class modVastChucnangcanhanHelper
{
    static function getHosocanbo()
    {
		$user = JFactory::getUser();
        $id = $user->id;

        $db = JFactory::getDBO();
        $query = $db->getQuery(true);

        $query->select('DISTINCT a.*');
        $query->from('#__hosocanbo AS a');
        $query->where('a.nguoidung_id = ' . $id);

        $db->setQuery($query);
        $canbo = $db->loadObject();

        return $canbo;        
    }    
}